<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>javascript中的lambda表达式</title>
    <script type="text/javascript">
        var arrs = ["aaa1","bbb1","ccc1","ddd2","eee3","fff2",];
        // lambda表达式
        var str = arrs.filter(arr => arr.endsWith("2"));

        document.write(str);
    </script>
</head>
<body>

</body>
</html>